import request from '@/utils/request'
// 省市级下拉树（五级
export function listByTreeProcessType(query) {
  return request({
    url: '/sys/sysRegionApi/listTree',
    method: 'post'
    // params: query
  })
}

// 省市级下拉树 （三级
export function listRegionTree(params) {
  return request({
    url: '/sys/sysRegionApi/listTreeByThree',
    method: 'post',
    params
  })
}

// 根据区县回显地貌
export function getRegionalType(query) {
  return request({
    url: `/sys/sysRegionApi/selectLandFormByRegion/${query}`,
    method: 'get'
  })
}

// 编辑时回显地貌
export function getRegionalTypeById(query) {
  return request({
    url: `/supervise/regionalTypeApi/getRegionalTypeById/${query}`,
    method: 'get'
  })
}
